/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: DuKe TeAm
 * License Type: Purchased
 */
package orm;

import java.util.List;
import org.hibernate.criterion.DetachedCriteria;
import org.orm.PersistentSession;
import org.orm.criteria.*;

public class Trp_socio_ecoDetachedCriteria extends AbstractORMDetachedCriteria {
	public final StringExpression so_id_socio_e;
	public final StringExpression so_des_socio_e;
	
	public Trp_socio_ecoDetachedCriteria() {
		super(orm.Trp_socio_eco.class, orm.Trp_socio_ecoCriteria.class);
		so_id_socio_e = new StringExpression("so_id_socio_e", this.getDetachedCriteria());
		so_des_socio_e = new StringExpression("so_des_socio_e", this.getDetachedCriteria());
	}
	
	public Trp_socio_ecoDetachedCriteria(DetachedCriteria aDetachedCriteria) {
		super(aDetachedCriteria, orm.Trp_socio_ecoCriteria.class);
		so_id_socio_e = new StringExpression("so_id_socio_e", this.getDetachedCriteria());
		so_des_socio_e = new StringExpression("so_des_socio_e", this.getDetachedCriteria());
	}
	
	public Trp_colegioDetachedCriteria createTrp_colegioCriteria() {
		return new Trp_colegioDetachedCriteria(createCriteria("ORM_Trp_colegio"));
	}
	
	public Trp_socio_eco uniqueTrp_socio_eco(PersistentSession session) {
		return (Trp_socio_eco) super.createExecutableCriteria(session).uniqueResult();
	}
	
	public Trp_socio_eco[] listTrp_socio_eco(PersistentSession session) {
		List list = super.createExecutableCriteria(session).list();
		return (Trp_socio_eco[]) list.toArray(new Trp_socio_eco[list.size()]);
	}
}

